Skip to main content

Bash Shell Keyboard Shortcuts

· One min read

向左刪除一個字 Ctrl + W

跳到 左邊/右邊 的字首 Alt + B/F

向右 全部刪除 Ctrl + K

尋找輸入過的指令 Ctrl + R

向左交換一個 字/字元 (Ctrl or alt)/Esc + T

Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.